package com.example.demo.config;

import com.example.demo.threadpool.ThreadPoolConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 模型线程池配置
 * 生成配置Bean的名字为：{FaceModel.name()}_[Search/Extract]_ThreadPoolConfig
 */
@Configuration
@EnableConfigurationProperties
public class XCThreadPoolConfig {
    /**
     * 数据同步线程池
     */
    @Bean("dataxToL1ThreadPoolConfig")
    @ConfigurationProperties("data.thread.pool")
    public ThreadPoolConfig getDataThreadPool() {
        return new ThreadPoolConfig();
    }


}
